package com.sample.tdf.sample.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("course")
@ApiModel(value = "Course对象", description = "")
public class Course  {

    private static final long serialVersionUID = 1L;

    private String courseName;

    private Student student;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String remark;

    @TableField(value = "flag", fill = FieldFill.INSERT)
    private Integer flag;

    @TableField(value = "created_date", fill = FieldFill.INSERT)
    private LocalDateTime createdDate;

    @TableField(value = "modified_date", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifiedDate;

    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

    @TableField(value = "modified_by", fill = FieldFill.INSERT_UPDATE)
    private String modifiedBy;
}
